package com.topwalk.datacollect.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class ApplicationConfig {

	// 高频数据接收端ip
	public static String INC_SOCKET_IP = "";
	@Value("${inc.socket.ip}")
	public void setInc_socket_ip(String inc_socket_ip) {
		INC_SOCKET_IP = inc_socket_ip;
	}
	
	// 高频数据接收端port
	public static int INC_SOCKET_PORT = 0;
	@Value("${inc.socket.port}")
	public void setInc_socket_port(int inc_socket_port) {
		INC_SOCKET_PORT = inc_socket_port;
	}

//	public static String taskStr;
//	@Value()
//	public static void setTaskStr(String taskStr) {
//		ApplicationConfig.taskStr = taskStr;
//	}

	// 高频数据socket连接池大小
	public static int INC_SOCKET_POOL_SIZE = 5;
	@Value("${inc.socket.pool-size}")
	public void setInc_socket_pool_size(int inc_socket_pool_size) {
		INC_SOCKET_POOL_SIZE = inc_socket_pool_size;
	}

	// 低频数据接收端ip
	public static String SYNC_SOCKET_IP = "";
	@Value("${sync.socket.ip}")
	public void setSync_socket_ip(String sync_socket_ip) {
		SYNC_SOCKET_IP = sync_socket_ip;
	}
	
	// 低频数据接收端port
	public static int SYNC_SOCKET_PORT = 0;
	@Value("${sync.socket.port}")
	public void setSync_socket_port(int sync_socket_port) {
		SYNC_SOCKET_PORT = sync_socket_port;
	}

	// 高频数据socket连接池大小
	public static int SYNC_SOCKET_POOL_SIZE = 2;
	@Value("${inc.socket.pool-size}")
	public void setSync_socket_pool_size(int sync_socket_pool_size) {
		SYNC_SOCKET_POOL_SIZE = sync_socket_pool_size;
	}

	// syslog port
	public static int SYSLOG_PORT = 514;
	@Value("${syslog.port}")
	public void setSyslogPort(int syslogPort) {
		SYSLOG_PORT = syslogPort;
	}

	// 追加数据   数据来源系统分类代码
	public static String addData_SJLYXTFLDM = "";
	@Value("${addData.SJLYXTFLDM}")
	public void setAddData_SJLYXTFLDM(String a) {
		addData_SJLYXTFLDM = a;
	}

	// 追加数据   采集地
	public static String addData_CJD = "";
	@Value("${addData.CJD}")
	public void setAddData_CJD(String a) {
		addData_CJD = a;
	}

}
